<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>车辆信息</title>
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/metro/easyui.css">
    <link rel="stylesheet" href="/static/js/plugins/jquery-easyui/themes/icon.css">
    <script src="/static/js/plugins/jquery-easyui/jquery.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script src="/static/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/system/carView.js"></script>
</head>
<body>
<div id="aa" class="easyui-accordion" style="width:100%;height:99%;">
    <div title="投保人"  style="overflow:auto;padding:10px;" data-options="selected:true">
        <div id="my_dialog">
        <table id="my_datagrid"></table>
        </div>
        <div id="bb">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="add()"> 确定</a>
        </div>
        <form id="editForm" method="post" style="padding:40px 0px 0px 35px;">
                <input type="hidden" id="deptId" name="id">
                <table style="border-collapse: separate;border-spacing: 20px;">
                    <tr>
                        <td >客户姓名:</td>
                        <td><input class="easyui-textbox" type="text" name="clientname" /></td>
                        <td >性别:</td>
                        <td><input class="easyui-combobox" type="text" name="gender"
                                   data-options="data:[{'value':'0','text':'女'},{'value':'1','text':'男'}],valueField:'value',textField:'text',panelHeight:'auto'"
                        /></td>
                        <td >身份证:</td>
                        <td><input class="easyui-textbox" type="text" name="idcard"/></td>
                    </tr>
                    <tr>
                        <td >联系方式:</td>
                        <td><input class="easyui-textbox" type="text" name="tel"/></td>
                    </tr>
                    <tr>
                        <td >通讯地址:</td>
                        <td><input class="easyui-textbox" type="text" name="address"/></td>
                    </tr>
                    <tr>
                        <td>
                     <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="searchs()"> 添加</a>
                        </td>
                    </tr>
                </table>
            </form>
    </div>
    <div title="车辆信息"  style="padding:10px;">
        <form id="car_Form" method="post" style="padding:40px 0px 0px 35px;">
            <input  type="hidden" name="car.id" />
            <table style="border-collapse: separate;border-spacing: 20px;">
                <tr>
                    <td >车主姓名:</td>
                    <td><input class="easyui-textbox" type="text" name="username" /></td>
                </tr>
                <tr>
                    <td >车牌号码:</td>
                    <td><input class="easyui-textbox" type="text" name="carnum"/></td>
                </tr>
                <tr>
                    <td >购买日期:</td>
                    <td><input class="easyui-datebox" type="text" name="purchasedate"/></td>
                </tr>
                <tr>
                    <td >车辆品牌:</td>
                    <td><input class="easyui-textbox" type="text" name="car.carname" readonly="true"/></td>
                </tr>
                <tr>
                    <td >车辆型号:</td>
                    <td><input class="easyui-textbox" type="text" name="car.cartype" readonly="true"/></td>
                </tr>
                <tr>
                    <td >排气量/L:</td>
                    <td><input class="easyui-textbox" type="text" name="car.displacement" readonly="true"/></td>
                </tr>
                <tr>
                    <td >市场估价/万:</td>
                    <td><input class="easyui-textbox" type="text" name="car.marketval" readonly="true"/></td>
                </tr>
                <tr>
                    <td >分类:</td>
                    <td><input class="easyui-combobox" type="text" name="car.sort"
                               data-options="
		valueField: 'sort',
		textField: 'text',
		data: [{
			sort: '1',
			text: '载人'
		},{
			sort: '0',
			text: '载物'
		}]"
                               readonly="true"/></td>
                </tr>
                <tr>
                    <td >车载大小:</td>
                    <td><input class="easyui-combobox" type="text" name="car.carsizeId"
                               data-options="
		valueField: 'carsizeId',
		textField: 'text',
		data: [{
			carsizeId: '1',
			text: '小型'
		},{
			carsizeId: '2',
			text: '中型'
		},{
			carsizeId: '3',
			text: '大型'
		}]"
                               readonly="true" /></td>
                </tr>

            </table>
        </form>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="queryCar()">常见车型选择</a>
    </div>
    <div title="保险产品">
        <form id="info_form" method="post" style="padding:40px 0px 0px 35px;">
            <input type="hidden"  name="product_id">
            <table style="border-collapse: separate;border-spacing: 20px;">
                <tr>
                    <td >承保机构:</td>
                    <td><input class="easyui-combobox" type="text" name="agency_id"  id="institution"
                               data-options="url:'/agencyInfo/queryAgency',valueField:'id',textField:'name',panelHeight:'auto'"
                    /></td>
                    <td> <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="safes()"> 添加</a></td>
                    <td >保险时长:</td>
                    <td><input type="text" id="year" name="durations"/>年</td>
                </tr>

            </table>
            <div id="info_dialog">
                <table id="info_datagrid"></table>
            </div>
            <table id="in_datagrid">

            </table>
            <table align="center">
                <tbody>
                <tr>
                    <th>
                        总计<span id="totalAmount" style="color: red;font-size: 60px" name="limit">0</span>元
                    </th>
                </tr>
                </tbody>
            </table>
            <input type="button" value="暂存保单" onclick="hold()">
        </form>
    </div>
</div>
</div>
<div id="car_dialog">
    <table id="car_datagrid"></table>
</div>

</body>
</html>
